<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>海量通 -- 营销专家</title>

    <!-- Bootstrap -->
    <link href="./vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="./vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- Custom Theme Style -->
    <link href="./build/css/custom.min.css" rel="stylesheet">
    <!-- Datatables -->
    <link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <!-- Web Goobal Style -->
    <link href="./css/goobal.css" rel="stylesheet">

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="index.html" class="site_title"><i class="fa  fa-globe"></i> <span style="margin-left:10px;">海&nbsp;量&nbsp;通</span></a>
            </div>
            <div class="clearfix"></div>
            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
              <div class="menu_section">
                <h3>General</h3>
                <ul class="nav side-menu">
                  <li><a href="index.html"><i class="fa fa-home"></i> 首页 <span class="fa fa-chevron-down"></span></a>
                  </li>
                  <li><a><i class="fa  fa-th-list"></i> 广告和计划 <span class="fa fa-chevron-down"></span></a>
                    <ul class="nav child_menu">
                      <li><a href="planning.html">广告计划</a></li>
                      <li><a href="advert.html">广告</a></li>
                    </ul>
                  </li>
                  <li><a><i class="fa  fa-clipboard"></i> 素材库 <span class="fa fa-chevron-down"></span></a>
                    <ul class="nav child_menu">
                      <li><a href="materials-list.html">广告创意</a></li>
                      <li><a href="marketing-form.html">营销表单</a></li>
                    </ul>
                  </li>
                  <li><a><i class="fa fa-area-chart"></i> 统计报表 <span class="fa fa-chevron-down"></span></a>
                    <ul class="nav child_menu">
                      <li><a href="reports.html">广告投放统计</a></li>
                      <li><a href="reports-form.html">表单统计</a></li>
                    </ul>
                  </li>
                  <li><a><i class="fa   fa-user"></i> 账号管理  <span class="fa fa-chevron-down"></span></a>
                    <ul class="nav child_menu">
                      <li><a href="user-detail.html">账号中心</a></li>
                      <li><a href="account-flow.html">账号流水</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
            <!-- /sidebar menu -->
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <img src="images/img.jpg" alt="">海量通
                    <span class=" fa fa-angle-down"></span>
                  </a>
                  <ul class="dropdown-menu dropdown-usermenu pull-right">
                    <li><a href="javascript:;"><i class="fa  fa-cog pull-right"></i>账号中心</a></li>
                    <li><a href="javascript:;"><i class="fa fa-pencil-square pull-right"></i>修改密码</a></li>
                    <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i>退出</a></li>
                  </ul>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        <!-- /top navigation -->
        <!-- page content -->
        <div class="right_col" role="main">

            <!-- top title -->
            <div class="x_title">
              <h2>表单统计</small></h2>
              <div class="clearfix"></div>
            </div>


            <div class="clearfix"></div>

            <!-- tongji -->
            <div class="row">
              <div class="col-md-12">
                <div class="">
                  <div class="x_content">
                    <div class="row">

                      <!-- 表格 -->
                      <div class="x_panel">
<!--                         <div class="x_title">
                          <h3>广告计划列表</h3>

                          <div class="clearfix"></div>
                        </div> -->
                        <div class="x_content">

                          <!-- content table -->
                          <div id="datatable_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                            <div class="row">

                              <!-- 时间控件 -->
                              <div class="reports-form-item">
                                <label class="">接收开始时间：</label>
                                <fieldset class="">
                                  <div class="control-group">
                                    <div class="controls">
                                      <div class="col-md-11 xdisplay_inputx form-group has-feedback">
                                        <input type="text" class="form-control has-feedback-left" id="single_cal2" placeholder="First Name" aria-describedby="inputSuccess2Status2">
                                        <span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>
                                        <span id="inputSuccess2Status2" class="sr-only">(success)</span></div>
                                    </div>
                                  </div>
                                </fieldset>
                              </div>

                              <div class="reports-form-item">
                                <label class="">接收开始时间：</label>
                                <fieldset class="">
                                  <div class="control-group">
                                    <div class="controls">
                                      <div class="col-md-11 xdisplay_inputx form-group has-feedback">
                                        <input type="text" class="form-control has-feedback-left" id="single_cal3" placeholder="First Name" aria-describedby="inputSuccess2Status2">
                                        <span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>
                                        <span id="inputSuccess2Status2" class="sr-only">(success)</span></div>
                                    </div>
                                  </div>
                                </fieldset>
                              </div>

                              <div class="reports-form-item">
                                <label class="">姓名：</label>
                                <input type="text" class="form-control" placeholder="姓名" >
                              </div>


                              <div class="reports-form-item">
                                <label class="">手机号/微信：</label>
                                <input type="text" class="form-control " placeholder="手机号／微信" >
                              </div>



                              <div class="reports-form-item">
                                <label class="">选择导出数据日期：</label>
                                <div class="selectInput">
                                  <select class="form-control">
                                    <option>今天</option>
                                    <option>昨天</option>
                                    <option>过去7天</option>
                                    <option>过去30天</option>
                                  </select>
                                </div>

                                <button class="btn btn-primary download" style="margin-left: 16px;"><i class="fa fa-download"></i>导出</button>
                              </div>

                            </div>


                            <div class="row">
                              <div class="col-sm-12">
                                <table id="datatable" class="table table-striped table-bordered dataTable no-footer reports-form-table" role="grid" aria-describedby="datatable_info">
                                  <thead>
                                    <tr role="row">
                                      <th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-sort="ascending" style="width: 105px;">接收时间</th>
                                      <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1"  style="width: 109px;">姓名</th>
                                      <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1"  style="width: 75px;">手机号/微信</th>
                                      <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1"  style="width: 93px;">备注</th>
                                      <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1"  style="width: 76px;">状态</th>
                                      <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1"  style="width: 66px;">操作</th></tr>
                                  </thead>
                                  <tbody>
                                    <tr role="row" class="even">
                                      <td>2016-08-22 13:18:16</td>
                                      <td>李六</td>
                                      <td>wechat</td>
                                      <td>联系未接电话</td>
                                      <td class="wait-action">待处理</td>
                                      <td>
                                        <a href="javaScript:;" onclick="getDialog()">客户反馈</a>
                                        <a href="javaScript:;" onclick="getDetailDialog()">客资详情</a>
                                      </td>
                                    </tr>
                                  
                                    <tr role="row" class="odd">
                                      <td>2016-08-22 13:18:16</td>
                                      <td>李六</td>
                                      <td>wechat</td>
                                      <td>联系未接电话</td>
                                      <td class="wait">待定</td>
                                      <td>
                                        <a href="javaScript:;" onclick="getDialog()">客户反馈</a>
                                        <a href="javaScript:;">客资详情</a>
                                      </td>
                                    </tr>


                                    <tr role="row" class="even">
                                      <td>2016-08-22 13:18:16</td>
                                      <td>李六</td>
                                      <td>wechat</td>
                                      <td>联系未接电话</td>
                                      <td class="effect">有效</td>
                                      <td>
                                        <a href="javaScript:;" onclick="getDialog()">客户反馈</a>
                                        <a href="javaScript:;">客资详情</a>
                                      </td>
                                    </tr>

                                  </tbody>
                                </table>
                              </div>
                            </div>
                            <div class="row">
                              <div class="col-sm-5">
                                <div class="dataTables_info" id="datatable_info" role="status" aria-live="polite">共<span>5</span>条数据</div></div>
                              <div class="col-sm-7">
                                <div class="dataTables_paginate paging_simple_numbers" id="datatable_paginate">
                                  <ul class="pagination">
                                    <li class="paginate_button previous disabled" id="datatable_previous">
                                      <a href="#" aria-controls="datatable" data-dt-idx="0" tabindex="0">Previous</a></li>
                                    <li class="paginate_button active">
                                      <a href="#" aria-controls="datatable" data-dt-idx="1" tabindex="0">1</a></li>
                                    <li class="paginate_button ">
                                      <a href="#" aria-controls="datatable" data-dt-idx="2" tabindex="0">2</a></li>
                                    <li class="paginate_button ">
                                      <a href="#" aria-controls="datatable" data-dt-idx="3" tabindex="0">3</a></li>
                                    <li class="paginate_button ">
                                      <a href="#" aria-controls="datatable" data-dt-idx="4" tabindex="0">4</a></li>
                                    <li class="paginate_button ">
                                      <a href="#" aria-controls="datatable" data-dt-idx="5" tabindex="0">5</a></li>
                                    <li class="paginate_button ">
                                      <a href="#" aria-controls="datatable" data-dt-idx="6" tabindex="0">6</a></li>
                                    <li class="paginate_button next" id="datatable_next">
                                      <a href="#" aria-controls="datatable" data-dt-idx="7" tabindex="0">Next</a></li>
                                  </ul>
                                </div>
                              </div>
                            </div>
                          </div>
                          <!-- content table -->

                        </div>
                      </div>
                      <!-- 表格 -->
                  </div>
                </div>
              </div>
            </div>

          </div>

        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
          <div class="pull-right">
            海量通 - 广告投放平台 © 20150.1.0-20160727134637
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="./vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="./vendors/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- bootstrap-daterangepicker -->
    <script src="./js/moment/moment.min.js"></script>
    <script src="./js/datepicker/daterangepicker.js"></script>

    <script src="./vendors/bootbox.js"></script>


    <!-- Custom Theme Scripts -->
    <script src="./build/js/custom.js"></script>

    <!-- Datatables -->
    <script>
      $(document).ready(function() {
        // $('#datatable').dataTable();
      });
    </script>
    <!-- /Datatables -->
    <script>
      $(document).ready(function() {
        $('#single_cal1').daterangepicker({
          singleDatePicker: true,
          calender_style: "picker_1"
        }, function(start, end, label) {
          console.log(start.toISOString(), end.toISOString(), label);
        });
        $('#single_cal2').daterangepicker({
          singleDatePicker: true,
          calender_style: "picker_2"
        }, function(start, end, label) {
          console.log(start.toISOString(), end.toISOString(), label);
        });
        $('#single_cal3').daterangepicker({
          singleDatePicker: true,
          calender_style: "picker_3"
        }, function(start, end, label) {
          console.log(start.toISOString(), end.toISOString(), label);
        });
        $('#single_cal4').daterangepicker({
          singleDatePicker: true,
          calender_style: "picker_4"
        }, function(start, end, label) {
          console.log(start.toISOString(), end.toISOString(), label);
        });
      });
    </script>

    <script>
      $(document).ready(function() {
        $('#reservation').daterangepicker(null, function(start, end, label) {
          console.log(start.toISOString(), end.toISOString(), label);
        });
      });
    </script>
    <!-- /bootstrap-daterangepicker -->

<script type="text/javascript">
function getDialog(){

  bootbox.dialog({
    title : "客户表单反馈",
    message : "<div class='well ' style='margin-top:25px;'>"+
              "<form id='forms' class='form-horizontal' role='form'>"+
              "<div class='form-group'><label class='col-sm-3 control-label no-padding-right' for='txtOldPwd'>客户状态</label><div class='col-sm-9'>"+
              "<select name='status' id='status' class='form-control'><option  value='1' >有效</option><option value='2' >待定</option> <option value='3' >无效</option> </select></div></div>"+
              "<div class='space-4'></div>"+
              "<div class='form-group'><label class='col-sm-3 control-label no-padding-right' for='txtNewPwd1'>备注</label><div class='col-sm-9'>"+
              "<textarea name='remark' id='remark' class='text form-control' maxlength='255' >22222</textarea></div></div>"+
              "</form></div>",
    buttons : {
        "success" : {
            "label" : "<i class='icon-ok'></i> 保存",
            "className" : "btn-sm btn-success",
            "callback" : function() {

              bootbox.dialog({
                message:"修改成功",
                buttons:{
                  "success":{
                    "label" : "<i class='icon-ok'></i> 确定",
                             "className":"btn-sm btn-success",
                     "callback" : function() {
                       location.reload();
                     }
                  }
                }
              });

              // ajax处理逻辑
              //   var txt1 = $("#status").val();
              //   var txt2 = $("#remark").val();
              //   var info = {"status":txt1,"remark":txt2};
              //   $.ajax({
              //   url: "/reports/forms/"+id,
              //   type: "POST",
              //   dataType: "json",
              //   data:info,
              //   cache: false,
              //   async: false,
              //   success: function(data) {
              //     bootbox.dialog({
              //       message:"修改成功",
              //       buttons:{
              //         "success":{
              //           "label" : "<i class='icon-ok'></i> 确定",
              //                    "className":"btn-sm btn-success",
              //            "callback" : function() {
              //              location.reload();
              //            }
              //         }
              //       }
              //     });
              //   }
              // }); 
            }
        },
        "cancel" : {
            "label" : "<i class='icon-info'></i> 取消",
            "className" : "btn-sm btn-danger",
            "callback" : function() { }
        }
    }
  })
}


function getDetailDialog(){

  bootbox.dialog({
    title : "客户表单反馈详细信息",
    message : "<div class='well ' style='margin-top:25px;'>"+
              "<form id='forms' class='form-horizontal' role='form'>"+
              '<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="txtOldPwd">姓名</label><div class="col-sm-9"><div name="remark" id="remark" class="text form-control" maxlength="255" style="border: hidden">lijunhao</div></div></div>'+

              '<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="txtOldPwd">E-mail</label><div class="col-sm-9"><div name="remark" id="remark" class="text form-control" maxlength="255" style="border: hidden">1002234815@sina.com</div></div></div>'+

              '<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="txtOldPwd">QQ</label><div class="col-sm-9"><div name="remark" id="remark" class="text form-control" maxlength="255" style="border: hidden">100024864</div></div></div>'+

              '<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="txtOldPwd">微信</label><div class="col-sm-9"><div name="remark" id="remark" class="text form-control" maxlength="255" style="border: hidden">45678989</div></div></div>'+

              '</form>'+
              '</div>',
    buttons : {
        "success" : {
            "label" : "<i class='icon-ok'></i> 保存",
            "className" : "btn-sm btn-success"
        },
        "cancel" : {
            "label" : "<i class='icon-info'></i> 取消",
            "className" : "btn-sm btn-danger",
            "callback" : function() { }
        }
    }
  })
}
</script>

  </body>
</html>
